home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
COLORCON.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
2KB
|
53 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef color_content
#ifndef NDEBUG
char *rcsid_colorcon = "$Header: c:/curses/portable/RCS/colorcon.c%v 2.0 1992/11/15 03:28:48 MH Rel $";
#endif
/*man-start*********************************************************************
color_content() - Obtain color content information.
PDCurses Description:
This routine obtains the current color-content information of a given
color.
The routine uses four arguments: the color number, which must
be a value between 0 and COLORS-1, and the addresses of three
short integers for storing the obtained information of the color
components red, green and blue. The function stores the current
values at these adresses passed.
***** This function doesn't do anything yet *****
PDCurses Return Value:
This function returns ERR if the color is out of range otherwise
it returns OK.
PDCurses Errors:
N/A
Portability:
PDCurses int color_content( int color, short *red, short *green, short *blue);
SYS V curses int color_content( int color, short *red, short *green, short *blue);
**man-end**********************************************************************/
int color_content(int color, short *red, short *green, short *blue)
{
extern int COLORS;
if (color >= COLORS -1 || color < 1)
return(ERR);
/*
* This function doesn't do anything yet...
*/
return(ERR);
}